package com.yunwushanhe.student.util;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class UserBaseInfoUtil {
    private static final ThreadLocal<Object> threadLocal = new ThreadLocal<>();

    public static void saveUserInfo(Object objectData){
        threadLocal.set(objectData);
    }

    public static void getUserInfo(){
        threadLocal.get();
    }

    public static void removeUserInfo(){
        threadLocal.remove();
    }
}
